<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/29
  Time: 21:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>订单管理</title>
    <%@include file="/common/head.jsp"%>
</head>
<body>
<div align="right">
    <font color="red" face="楷体" size="3">
        <%@include file="/common/managerMenu.jsp"%>
    </font>
</div>
<c:if test="${not empty requestScope.page}">
<%--不为空显示用户们的订单详情--%>
<table align="center" border="1">
    <tr>
        <th>用户账号名</th>
        <th>用户邮箱</th>
        <th>用户真实姓名</th>
        <th>用户身份证号</th>
        <th>用户性别</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${requestScope.page.items}" var="orderUser">
        <tr>
            <td>${orderUser.username}</td>
            <td>${orderUser.email}</td>
            <td>${orderUser.realname}</td>
            <td>${orderUser.user_ID}</td>
            <td>${orderUser.sex}</td>
            <td>
                <a href="os?action=showMyOrders&userId=${orderUser.id}" style="color: darkviolet;text-decoration: none">
                    订单详情
                </a>
            </td>
        </tr>
    </c:forEach>
</table>
    <%@include file="/common/paging_bar.jsp"%>
</c:if>
<c:if test="${empty requestScope.page}">
<%--    为空显示提示语--%>
    本模块并无交易记录
</c:if>
</body>
</html>
